package com.sasu.university_data.service;

import com.sasu.university_data.entity.WorkPlace;

import java.util.List;

public interface WorkPlaceService {
    List<WorkPlace> queryWorkPlaceById( Integer id);

    long count(String loc);

    /***
     * 分页查询
     * @param page
     * @param pageSize
     * @return
     */
    List<WorkPlace> selectByPage(String loc, Integer page, Integer pageSize);

    boolean insert( WorkPlace workPlace);
    boolean update(WorkPlace workPlace);

    boolean deleteById(Integer wId);
    /***
     * 通过id批量删除
     * @param wIds
     * @return
     */
    boolean deleteByIds(int[] wIds);
}
